The online racing simulator
Searching in All forums
(951 results)
Yisc[NL]
S3 licensed
Sadly there isn't a proper wiki.
Best thing to do is check "changes.txt" found in the "doc" folder.
That explains every command ever introduced.
Otherwise use this forum as "wiki" Smile
Yisc[NL]
S3 licensed
As far as I know, that isn't possible.
The whole code that is used to do things with PB, is hardcoded in Lapper.
Yisc[NL]
S3 licensed
Have a look in section:

##################################
#Options for idle player on track#
##################################

#$IdleExclude = "Lagamel,Gai-Luron"; # Usernames excluded for idle check

#$OnIdleTimeout1 = 60; # Idle timeout for OnIdleAction1 in seconds

Event OnIdle1( $userName ) # Player event
UserGroupFromFile( "idleExempt", "./idleexempt.txt" );
IF( UserInGroup( "idleExempt",$userName ) == 0 )
THEN
privMsg( langEngine( "%{main_idle1}%" ) );
ENDIF
EndEvent

#$OnIdleTimeout2 = 120; # Idle timeout for OnIdleAction2 in seconds

Event OnIdle2( $userName ) # Player event
UserGroupFromFile( "idleExempt", "./idleexempt.txt" );
IF ( UserInGroup( "idleExempt",$userName ) == 0 )
THEN
cmdLFS ( "/spec " . GetCurrentPlayerVar("Nickname") );
privMsg ( langEngine( "%{main_idle2}%" ) );
ENDIF
EndEvent

Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :already can not enter the license, but I want to do because it can ?

I don't understand what you mean.
You asked if it was possible to do a check from within Lapper if people are or aren't allowed to login on your server.
Then I explained how to that and what needs to be done.

You need to create a file called license.txt (for example) and place that somewhere in your Lapper directory.
Then you need to create an LPR file (with the code I have given you) and place that in the "includes" directory of Lapper.
Then you need to adjust the file called "addonsused.lpr" which can also be found in the "includes" directory and add a line under "General includes" pointing to the LPR file you created earlier.
Then restart Lapper and then it will check every person connecting to your server, against the LFS usernames mentioned in the license.txt file.
If your name is in that file, you can procede, if not, you will get a ban.
Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
Excuses for the mistake in the ban code, I copied that from an older version of Lapper and didn't check the code properly as I was heading to bed.
The LFS Username is unique, so nobody can use your name.
Of course it is a different story with Nicknames, they can be used by anyone, but since the license check in Lapper is about LFS Usernames, nobody can enter the server as long as its LFS Username isn't in license.txt

In that same OnConnect event, you can add a line to send a global message, like: GlobalMsg ( "^7Connected: " . GetCurrentPlayerVar( "NickName") );

You can't show from which country someone is, since LFS can't detect that.
Yisc[NL]
S3 licensed
Then you need to do a check in the OnConnect event. First load the file, then check if the username is found in that file.
If not, ban that username.

-Create an empty LPR file and store that in your include directory
-Add the file name to "general includes" in addonsused.lpr
-Use the code below, to fill the empty LPR file you have just created


CatchEvent OnConnect( $userName ) # Player event
OnConnect_License();
EndCatchEvent

Sub OnConnect_License() # Player event
### Load usernames from file license.txt ###
UserGroupFromFile( "X", "./../license.txt" );

### Check if username is found in group X ###
IF ( UserInGroup( "X",GetCurrentPlayerVar( "UserName" ) ) == 0 )
THEN
PrivMsg( "^7Banned for breaking the rules too many times" );
cmdLFS( "/ban " . GetCurrentPlayerVar("Username") . " 14" );
ENDIF
EndSub

.. in the path to the license file, means you go up one directory from the current (which should be the includes folder) directory.
Of course you could put the license.txt in the includes folder as well.
14 means the player is banned for 14 days, of course you could set that to a higher value.
I think 999 days or 9999 days is the maximum (but you should check that, or maybe someone knows the maximum value)
Yisc[NL]
S3 licensed
I'm glad I could help you.
There is enough room for improvements on the script, but it's very functional as it is already.
Yisc[NL]
S3 licensed
Right, after a couple of hours I think I came up with the script you want.
Here are the steps to activate it:

-Download the file and rename it to teamchat.lpr
-Then store it in the "includes" folder of Lapper
-Open file "addonsused.lpr"
-Add a line under "General includes" saying: include( "./teamchat.lpr");
-Open file "teamchat.lpr"
-Adjust the path to tofus.txt , to the location it has in your Lapper directory (*)
-Start Lapper and the script should work

(*) Using ".." means you go one directory up from the current directory

Let me know if this is what you want or what you would like to be changed/added (I will help if requests are reasonable, but trying first your self, would be a good thing to learn to code within Lapper)
Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
Quote from LakynVonLegendaus :Hello, please, could any beautiful soul help me with Team Chat history code?

I want to store ONLY last 10 teamchat messages and then display it using 10 privButtons, problem is I only have made simple Teamchat code using openPrivTextButton and "IF useringroup" method which works fine but thats the best I can do, Im stuck Shrug

This isn't too hard to do with Lapper.
Can you please send me the code you already have, then I am willing to look into your request.
Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
Quote from cargame.nl :Try click on UDP in N-list (press N)

It switches to TCP. For some reason I need to do that here on vipnet.hr otherwise after some time I dont see anyone driving anymore after some time. And I am too lazy too find out why it's behaving like this here Taped Shut

It may not be related to your case, but do you have any bandwidth monitoring software on your pc?
We recently had someone on our servers, who couldn't see anyone on track, while all other people could.
In the end it turned out that he had bandwidth monitoring software installed, which caused this problem.
After switching it off, all was okay as it were before he installed it.
Yisc[NL]
S3 licensed
That's way too high and will certainly cause lag.
Yisc[NL]
S3 licensed
Sure if you know the time to split1 and the total time when reaching split2, you can calculate how long it took between split1 and 2.
Yisc[NL]
S3 licensed
You could try to change the power setting of your USB ports.
Select that it isn't allowed to go into power saving and see if that's a solution to your problem.

You could also try to see if there is a newer driver for you G27 or for your USB-ports / Motherboard.
Yisc[NL]
S3 licensed
Quote from obzelite :... more cash for more adding some coders rather than one person puttings in a few hours every so often when the mood strikes ...

If you really believe what you just said there, you have no idea how commited Scawen is.
His commitment goes way beyond "putting in a few hours every so often".
I can't believe all the moaning that keeps going on, on the forum.
We just got a great update bringing us a totaly new Westhill track with endless posibilities to create tracks and on top of that a huge performance improvement this weekend.
All distributed free of charge, while all people have paid for, was that game as it was at the time they bought it.
So even if Scawen would decide that enough is enough, nobody has any right to complain about that what so ever.
Yisc[NL]
S3 licensed
Quote from three_jump :Am I really the only one who thinks that W10 is a horrible POS?
Different font sizes every where, different dialog box styles, two different control panels featuring the same and different settings.
No visual difference between title and menu bar which really does the trick with drag and dropping windows. Some Apps can't be uninstalled, some now come with adverts and some have a uninstall option which does nothing.

Also this: https://imgur.com/iHge6RJ

You are right with the points you mentioned, but while W10 has been released now, the product is not finished by any means. Microsoft will keep working on it and most of the thing you mentioned are left overs from W8(.1) and will be transformed to the new W10 layout.
Have a go with this version
Yisc[NL]
S3 licensed
As said in a private message, have a go with this version.
Yisc[NL]
S3 licensed
Well, that's a step in the right direction.
Now I see a huge new error, which I suspect has something to do with rights on the filesystem.
I have no experience in dealing with IIS, so I need to find out, how to give the directories you mentioned in the readme, the correct rights.
Requested file
Yisc[NL]
S3 licensed
Quote from avetere :Could you send me (PM):
- a link
- a copy of the event_definitions.txt
- the naming/path of one of the replays
?

Here's the requested file.
Yisc[NL]
S3 licensed
Hello, I have downloaded and installed the script, according to the instructions in the readme file. The webpage is available, but no data is generated, while I think I have set the replay files in the correct place and with the correct name.
Any help would be appreciated.
Yisc[NL]
S3 licensed
Pitboard - V2.09b (information screen about split times, gaps in front and behind you, ect)

Just a bugfix to get rid of the error in line 290, when driving on a open config track.
Yisc[NL]
S3 licensed
The code I supplied, can't be used in any place and not without filling in some details your self.
You could make a construction using the scheduler within Lapper, to check that piece of code every X seconds, or start it from a particular event, make it go to a sub event, wait a while and then go back to the speed check.
But all of this do need some knowledge about how Lapper should be coded.
Yisc[NL]
S3 licensed
Quote from elpopu :You could do so that the user is ban the user by 999 days when exceeding 200km / h?

Please!

Thanks!

Sure, you can do a check:


IF (GetCurrentPlayerVar( "InstantSpeed" ) > 200)
THEN
(do something)
ENDIF

Yisc[NL]
S3 licensed
No, you can't increase the performance of Lapper.
I don't know what script you have, but even when my servers are full, Lapper never gave a performance problem.
So maybe loops are giving you troubles?
Yisc[NL]
S3 licensed
Wasn't the $Currply not something from older versions of Lapper and then abandonned at some point? You might be able to find that in the changelog.
Yisc[NL]
S3 licensed
Just doing this out of my head, so might not work that way when actualy coding it. First you need to set a Playervalue when someone crosses a split. So when split 1 is crossed, the player has entered sector 2, etc.
When the Event is called to show the yellow flag, run a loop through all current connections and while doing that, do a check if the sector the player is currently in, does or doesn't need to show that flag. I think this is relatively straight forward.
FGED GREDG RDFGDR GSFDG